﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CLIENT_EMR.TEMPLATE;
using CLIENT_EMR.BASE_DATA;

namespace CLIENT_EMR
{
    public partial class frmUcControlMain : DevComponents.DotNetBar.Metro.MetroForm
    {
        string UcName = ""; 

        public frmUcControlMain(string ucname)
        {
            InitializeComponent();
            UcName = ucname;
        }

        private void frmTemplateMain_Load(object sender, EventArgs e)
        {
            if (UcName == "ucTemplateManagement")
            {
                //模版管理
                ucTemplateManagement uc = new ucTemplateManagement();
                uc.Dock = DockStyle.Fill;
                this.Controls.Add(uc);
            }
            else if (UcName == "frmKnowledge")
            {
                //知识库
                frKnowledge uc = new frKnowledge();
                uc.Dock = DockStyle.Fill;
                this.Controls.Add(uc);
            }
            else if (UcName == "ucWrite_Type")
            {
                //文书管理
                ucWrite_Type uc = new ucWrite_Type();
                uc.Dock = DockStyle.Fill;
                this.Controls.Add(uc);
            }
        }
    }
}
